//
//  Download.h
//  eBook
//
//  Created by Hai Le Dang on 8/30/11.
//  Copyright 2011 CMCSoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASINetworkQueue.h"

typedef enum
{
    DOWNLOAD_BOOK,
    DOWNLOAD_IMAGE,
    DOWNLOAD_IMAGE_AT_IMAGEVIEWDETAIL,
} DownloadMethod;

@interface DownloadHelper : NSObject
{
    DownloadMethod method;
    ASIHTTPRequest *_request;
    NSString *notificationName;
}
@property (nonatomic, assign) DownloadMethod method;

- (void)downloadFile:(NSString*)fileName url:(NSURL*)url progressView:(UIProgressView *)progressView;
- (void)dismissRequest;
- (void)downloadFile:(NSString*)fileName withURL:(NSURL*)url andNotificationName:(NSString*)_notificationName;
- (void)downloadFile:(NSString*)fileName toFolderWithName:(NSString*)folderName withURL:(NSURL*)url andNotification:(NSString*)notifyName;

@end
